package com.zwj;

import org.springframework.security.access.annotation.Secured;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {
    @RequestMapping("/test")
    public String show() {
        return "hello.html";
    }

    @Secured("ROLE_USER")
    @RequestMapping("/tt")
    public String show1() {
        return "kkk";
    }

    @RequestMapping("/ttt")
    public String show2() {
        return "ddddd";
    }
}
